from flask import Blueprint, request
from service.diningHall_service import DiningHallService
from utils.ResultUtil import Response
from model.User import User
hall = Blueprint("hall", __name__, url_prefix="/hall")


@hall.route('/list', methods=['GET'])
def user_list():
    return Response().success(DiningHallService().list())

@hall.route('/rand', methods=['GET'])
def rand():
    return Response().success(DiningHallService().rand())

